package com.example.ribbon.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @auth leihtg
 * @date 2018/12/24 16:50
 */
@FeignClient(value = "${service.provider.name}", fallback = ConsumerServiceFallback.class)
public interface ConsumerService {
    @RequestMapping(value = "provider/hello/{name}", method = RequestMethod.GET)
    String welcome(@PathVariable("name") String name);

}
